package com.yunxin.admin.system.infra.persistence.converter;

import com.yunxin.admin.system.domain.model.role.Role;
import com.yunxin.admin.system.infra.persistence.entity.SysRoleDO;
import org.mapstruct.Mapper;

/**
 * @author zero°
 * @since 2023-07-11
 */
@Mapper(componentModel = "spring")
public interface RoleConverter {

    /**
     * entity 转 do
     * @param entity entity
     * @return SysRoleDO
     */
    SysRoleDO formRole(Role entity);
}
